#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int n, m, i;
    int sum = 0, count = 0, a = 0;
    while (~scanf("%d%d", &n, &m))
    {
        count = n % m;
        for (i = 0; i < n; i++)
        {
            a += 2;
            sum += a;
            if ((i + 1) % m == 0)
            {
                printf("%d ", sum / m);
                sum = 0;
            }
            if ((i + 1) % m != 0 && i == n - 1)
            {
                printf("%d ", sum / count);
            }
        }
        a = 0, sum = 0;
        printf("\n");
    }
    return 0;
}